package com.jt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    @Select("select rights_id from role_rights where role_id = #{roleId}")
    List<Integer> findRightsIdList(int roleId);

    void deleteRoleRights(Integer roleId,List<Integer> rightsIds);

}
